#define _CRT_SECURE_NO_WARNINGS 1

# include<bits/stdc++.h>
using namespace std;

int main()
{
    int a, b;
    cin >> a >> b;
    long long s = 1;
    int k = a + b;
    while (k) s *= k, --k;
    cout << s;
    return 0;
}

# include<bits/stdc++.h>
using namespace std;

int main()
{
    int a = 0;
    cin >> a;
    int d = a % 100;
    a /= 100;
    if (a < 22)    a += 2000;
    else if (a < 100)    a += 1900;
    printf("%04d-%02d", a, d);
    return 0;
}